﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;

namespace SIMc
{
    public partial class HistoryForm : Form
    {
        public XMLHistory xmlHistory;
        public int profilID;

        public HistoryForm(XMLHistory xmlHistory, int profilID)
        {
            this.profilID = profilID;
            this.xmlHistory = xmlHistory;
            InitializeComponent();
        }

        private void CB_contact_SelectedIndexChanged(object sender, EventArgs e)
        {
            xmlHistory.fillTextBox(profilID, CB_contact.SelectedItem.ToString(), TB_history);
        }
    }
}